package com.geekhalo.admin.domain.user.create;

import com.geekhalo.admin.domain.user.create.CreateUserCommand; 
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class CreateUserContext{
    private CreateUserCommand command;

    private CreateUserContext(CreateUserCommand command){
         this.command = command;
    }

    public static CreateUserContext apply(CreateUserCommand command) {
        CreateUserContext context = new CreateUserContext(command);
        return context;
    }
}
